<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<title>Robocup-denayer-project-a: Motors Class Referentie</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javaScript" src="search/search.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css"/>
</head>
<body>
<!-- Gegenereerd door Doxygen 1.7.1 -->
<script type="text/javascript"><!--
var searchBox = new SearchBox("searchBox", "search",false,'Zoeken');
--></script>
<script type="text/javascript">
function hasClass(ele,cls) {
  return ele.className.match(new RegExp('(\\s|^)'+cls+'(\\s|$)'));
}

function addClass(ele,cls) {
  if (!this.hasClass(ele,cls)) ele.className += " "+cls;
}

function removeClass(ele,cls) {
  if (hasClass(ele,cls)) {
    var reg = new RegExp('(\\s|^)'+cls+'(\\s|$)');
    ele.className=ele.className.replace(reg,' ');
  }
}

function toggleVisibility(linkObj) {
 var base = linkObj.getAttribute('id');
 var summary = document.getElementById(base + '-summary');
 var content = document.getElementById(base + '-content');
 var trigger = document.getElementById(base + '-trigger');
 if ( hasClass(linkObj,'closed') ) {
   summary.style.display = 'none';
   content.style.display = 'block';
   trigger.src = 'open.png';
   removeClass(linkObj,'closed');
   addClass(linkObj,'opened');
 } else if ( hasClass(linkObj,'opened') ) {
   summary.style.display = 'block';
   content.style.display = 'none';
   trigger.src = 'closed.png';
   removeClass(linkObj,'opened');
   addClass(linkObj,'closed');
 }
 return false;
}
</script>
<div class="navigation" id="top">
  <div class="tabs">
    <ul class="tablist">
      <li><a href="index.html"><span>Hoofd&nbsp;Pagina</span></a></li>
      <li class="current"><a href="annotated.html"><span>Klassen</span></a></li>
      <li><a href="files.html"><span>Bestanden</span></a></li>
      <li id="searchli">
        <div id="MSearchBox" class="MSearchBoxInactive">
          <span class="left">
            <form id="FSearchBox" action="search.php" method="get">
              <img id="MSearchSelect" src="search/mag.png" alt=""/>
              <input type="text" id="MSearchField" name="query" value="Zoeken" size="20" accesskey="S" 
                     onfocus="searchBox.OnSearchFieldFocus(true)" 
                     onblur="searchBox.OnSearchFieldFocus(false)"/>
            </form>
          </span><span class="right"></span>
        </div>
      </li>
    </ul>
  </div>
  <div class="tabs2">
    <ul class="tablist">
      <li><a href="annotated.html"><span>Klasse&nbsp;Lijst</span></a></li>
      <li><a href="classes.html"><span>Klasse&nbsp;Index</span></a></li>
      <li><a href="hierarchy.html"><span>Klasse&nbsp;Hi&euml;rarchie</span></a></li>
      <li><a href="functions.html"><span>Klasse&nbsp;Members</span></a></li>
    </ul>
  </div>
</div>
<div class="header">
  <div class="summary">
<a href="#pub-methods">Public Members</a>  </div>
  <div class="headertitle">
<h1>Motors Class Referentie</h1>  </div>
</div>
<div class="contents">
<!-- doxytag: class="Motors" -->
<p><code>#include &lt;<a class="el" href="motors_8h_source.html">motors.h</a>&gt;</code></p>

<p><a href="class_motors-members.html">Lijst van alle members.</a></p>
<h2><a name="pub-methods"></a>
Public Members</h2>
<ul>
<li><a class="el" href="class_motors.html#a9ce7e0a99f4a434a2e545d4634b10eec">Motors</a> (int prt, int br)
<dl class="el"><dd class="mdescRight">Constructor.  <a href="#a9ce7e0a99f4a434a2e545d4634b10eec"></a><br/></dl><li><a class="el" href="class_motors.html#af669d235bb9ed93f6951bd256522ce51">~Motors</a> (void)
<dl class="el"><dd class="mdescRight">Destructor.  <a href="#af669d235bb9ed93f6951bd256522ce51"></a><br/></dl><li>void <a class="el" href="class_motors.html#a2a03135d58d03d8a82be9be0ceca1236">stopMotors</a> (void)
<dl class="el"><dd class="mdescRight">stopMotors  <a href="#a2a03135d58d03d8a82be9be0ceca1236"></a><br/></dl><li>void <a class="el" href="class_motors.html#ae5fe2fd03098baf0fd6e55c1b52a01e9">setSpeed</a> (int spd1, int dir1, int spd2, int dir2)
<dl class="el"><dd class="mdescRight">setSpeed  <a href="#ae5fe2fd03098baf0fd6e55c1b52a01e9"></a><br/></dl><li>void <a class="el" href="class_motors.html#a8492da1f62dcd7034f93fc8441e6579a">setSpeedAcc</a> (int spd1, int dir1, int spd2, int dir2)
<dl class="el"><dd class="mdescRight">setSpeedAcc  <a href="#a8492da1f62dcd7034f93fc8441e6579a"></a><br/></dl><li>void <a class="el" href="class_motors.html#ae4afe9d4e852132186622c75dc829d6a">setParam</a> (unsigned char param, unsigned char value)
<dl class="el"><dd class="mdescRight">setParam  <a href="#ae4afe9d4e852132186622c75dc829d6a"></a><br/></dl></ul>
<hr/><a name="_details"></a><h2>Gedetailleerde Beschrijving</h2>

<p>De definitie bevindt zich op regel <a class="el" href="motors_8h_source.html#l00026">26</a> in het bestand <a class="el" href="motors_8h_source.html">motors.h</a>.</p>
<hr/><h2>Constructor &amp; Destructor Documentatie</h2>
<a class="anchor" id="a9ce7e0a99f4a434a2e545d4634b10eec"></a><!-- doxytag: member="Motors::Motors" ref="a9ce7e0a99f4a434a2e545d4634b10eec" args="(int prt, int br)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">Motors::Motors </td>
          <td>(</td>
          <td class="paramtype">int&nbsp;</td>
          <td class="paramname"> <em>prt</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int&nbsp;</td>
          <td class="paramname"> <em>br</em></td><td>&nbsp;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td><td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Constructor. </p>
<p>Deze initialiseerd de klasse, en de pointer naar de klasse voor de seriele verbinding</p>
<dl class="author"><dt><b>Auteur:</b></dt><dd>Jasper Nevens &lt;<a href="mailto:jappe@nevensit.be">jappe@nevensit.be</a>&gt; </dd></dl>
<dl class="date"><dt><b>Datum:</b></dt><dd>01/03/11 </dd></dl>

<p>De definitie bevindt zich op regel <a class="el" href="motors_8cpp_source.html#l00024">24</a> in het bestand <a class="el" href="motors_8cpp_source.html">motors.cpp</a>.</p>

</div>
</div>
<a class="anchor" id="af669d235bb9ed93f6951bd256522ce51"></a><!-- doxytag: member="Motors::~Motors" ref="af669d235bb9ed93f6951bd256522ce51" args="(void)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">Motors::~Motors </td>
          <td>(</td>
          <td class="paramtype">void&nbsp;</td>
          <td class="paramname"></td>
          <td>&nbsp;)&nbsp;</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Destructor. </p>
<p>Doet voorlopig niets</p>
<dl class="author"><dt><b>Auteur:</b></dt><dd>Jasper Nevens &lt;<a href="mailto:jappe@nevensit.be">jappe@nevensit.be</a>&gt; </dd></dl>
<dl class="date"><dt><b>Datum:</b></dt><dd>01/03/11 </dd></dl>

<p>De definitie bevindt zich op regel <a class="el" href="motors_8cpp_source.html#l00040">40</a> in het bestand <a class="el" href="motors_8cpp_source.html">motors.cpp</a>.</p>

</div>
</div>
<hr/><h2>Documentatie van functie members</h2>
<a class="anchor" id="ae4afe9d4e852132186622c75dc829d6a"></a><!-- doxytag: member="Motors::setParam" ref="ae4afe9d4e852132186622c75dc829d6a" args="(unsigned char param, unsigned char value)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void Motors::setParam </td>
          <td>(</td>
          <td class="paramtype">unsigned char&nbsp;</td>
          <td class="paramname"> <em>param</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">unsigned char&nbsp;</td>
          <td class="paramname"> <em>value</em></td><td>&nbsp;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td><td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>setParam </p>
<p>zet paramaters op het TReX_JR bordje</p>
<dl class="author"><dt><b>Auteur:</b></dt><dd>Jasper Nevens &lt;<a href="mailto:jappe@nevensit.be">jappe@nevensit.be</a>&gt; </dd></dl>
<dl class="date"><dt><b>Datum:</b></dt><dd>01/03/11 </dd></dl>

<p>De definitie bevindt zich op regel <a class="el" href="motors_8cpp_source.html#l00140">140</a> in het bestand <a class="el" href="motors_8cpp_source.html">motors.cpp</a>.</p>

</div>
</div>
<a class="anchor" id="ae5fe2fd03098baf0fd6e55c1b52a01e9"></a><!-- doxytag: member="Motors::setSpeed" ref="ae5fe2fd03098baf0fd6e55c1b52a01e9" args="(int spd1, int dir1, int spd2, int dir2)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void Motors::setSpeed </td>
          <td>(</td>
          <td class="paramtype">int&nbsp;</td>
          <td class="paramname"> <em>spd1</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int&nbsp;</td>
          <td class="paramname"> <em>dir1</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int&nbsp;</td>
          <td class="paramname"> <em>spd2</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int&nbsp;</td>
          <td class="paramname"> <em>dir2</em></td><td>&nbsp;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td><td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>setSpeed </p>
<p>zet de snelheid en richting van de motors direct. deze wordt geupdate binnen de 10ms normaalgezien.</p>
<dl class="author"><dt><b>Auteur:</b></dt><dd>Jasper Nevens &lt;<a href="mailto:jappe@nevensit.be">jappe@nevensit.be</a>&gt; </dd></dl>
<dl class="date"><dt><b>Datum:</b></dt><dd>01/03/11 </dd></dl>

<p>De definitie bevindt zich op regel <a class="el" href="motors_8cpp_source.html#l00053">53</a> in het bestand <a class="el" href="motors_8cpp_source.html">motors.cpp</a>.</p>

<p>Gebruikt <a class="el" href="serial_8cpp_source.html#l00360">CloseComport()</a>, <a class="el" href="motors_8h_source.html#l00020">MAXV</a>, <a class="el" href="serial_8cpp_source.html#l00229">OpenComport()</a> en <a class="el" href="serial_8cpp_source.html#l00347">SendBuf()</a>.</p>

<p>Wordt aangeroepen door <a class="el" href="besturing_8cpp_source.html#l00017">Besturing::Besturing()</a>, <a class="el" href="rij_test_8cpp_source.html#l00018">main()</a> en <a class="el" href="motors_8cpp_source.html#l00127">stopMotors()</a>.</p>

<p><div id="dynsection-0" onclick="return toggleVisibility(this)" class="dynheader closed" style="cursor:pointer;">
  <img id="dynsection-0-trigger" src="closed.png"/> Hier is de call graaf voor deze functie:</div>
<div id="dynsection-0-summary" class="dynsummary" style="display:block;">
</div>
<div id="dynsection-0-content" class="dyncontent" style="display:none;">
<div class="center"><img src="class_motors_ae5fe2fd03098baf0fd6e55c1b52a01e9_cgraph.png" border="0" usemap="#class_motors_ae5fe2fd03098baf0fd6e55c1b52a01e9_cgraph" alt=""/></div>
<map name="class_motors_ae5fe2fd03098baf0fd6e55c1b52a01e9_cgraph" id="class_motors_ae5fe2fd03098baf0fd6e55c1b52a01e9_cgraph">
<area shape="rect" id="node3" href="serial_8cpp.html#a76b8f1bd6cb72a1e153df998c2742842" title="CloseComport" alt="" coords="191,5,303,35"/><area shape="rect" id="node5" href="serial_8cpp.html#afcbe0bdca93dd392b104bf7c7775ba42" title="OpenComport" alt="" coords="191,59,303,88"/><area shape="rect" id="node7" href="serial_8cpp.html#af2a032058a335a76ef91d025ac63942b" title="SendBuf" alt="" coords="209,112,284,141"/></map>
</div>
</p>

<p><div id="dynsection-1" onclick="return toggleVisibility(this)" class="dynheader closed" style="cursor:pointer;">
  <img id="dynsection-1-trigger" src="closed.png"/> Hier is de caller graaf voor deze functie:</div>
<div id="dynsection-1-summary" class="dynsummary" style="display:block;">
</div>
<div id="dynsection-1-content" class="dyncontent" style="display:none;">
<div class="center"><img src="class_motors_ae5fe2fd03098baf0fd6e55c1b52a01e9_icgraph.png" border="0" usemap="#class_motors_ae5fe2fd03098baf0fd6e55c1b52a01e9_icgraph" alt=""/></div>
<map name="class_motors_ae5fe2fd03098baf0fd6e55c1b52a01e9_icgraph" id="class_motors_ae5fe2fd03098baf0fd6e55c1b52a01e9_icgraph">
<area shape="rect" id="node3" href="class_besturing.html#a5a5a117fc659778bfe47e2fd63e08c42" title="Besturing::Besturing" alt="" coords="384,5,536,35"/><area shape="rect" id="node5" href="rij_test_8cpp.html#a0ddf1224851353fc92bfbff6f499fa97" title="main" alt="" coords="433,71,487,100"/><area shape="rect" id="node7" href="class_motors.html#a2a03135d58d03d8a82be9be0ceca1236" title="stopMotors" alt="" coords="189,44,336,73"/></map>
</div>
</p>

</div>
</div>
<a class="anchor" id="a8492da1f62dcd7034f93fc8441e6579a"></a><!-- doxytag: member="Motors::setSpeedAcc" ref="a8492da1f62dcd7034f93fc8441e6579a" args="(int spd1, int dir1, int spd2, int dir2)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void Motors::setSpeedAcc </td>
          <td>(</td>
          <td class="paramtype">int&nbsp;</td>
          <td class="paramname"> <em>spd1</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int&nbsp;</td>
          <td class="paramname"> <em>dir1</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int&nbsp;</td>
          <td class="paramname"> <em>spd2</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int&nbsp;</td>
          <td class="paramname"> <em>dir2</em></td><td>&nbsp;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td><td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>setSpeedAcc </p>
<p>zet een target speed voor de motors, deze snelheid zal accelereren naar deze waarde toe gaan.</p>
<dl class="author"><dt><b>Auteur:</b></dt><dd>Jasper Nevens &lt;<a href="mailto:jappe@nevensit.be">jappe@nevensit.be</a>&gt; </dd></dl>
<dl class="date"><dt><b>Datum:</b></dt><dd>01/03/11 </dd></dl>

<p>De definitie bevindt zich op regel <a class="el" href="motors_8cpp_source.html#l00090">90</a> in het bestand <a class="el" href="motors_8cpp_source.html">motors.cpp</a>.</p>

<p>Gebruikt <a class="el" href="serial_8cpp_source.html#l00360">CloseComport()</a>, <a class="el" href="motors_8h_source.html#l00020">MAXV</a>, <a class="el" href="serial_8cpp_source.html#l00229">OpenComport()</a> en <a class="el" href="serial_8cpp_source.html#l00347">SendBuf()</a>.</p>

<p><div id="dynsection-2" onclick="return toggleVisibility(this)" class="dynheader closed" style="cursor:pointer;">
  <img id="dynsection-2-trigger" src="closed.png"/> Hier is de call graaf voor deze functie:</div>
<div id="dynsection-2-summary" class="dynsummary" style="display:block;">
</div>
<div id="dynsection-2-content" class="dyncontent" style="display:none;">
<div class="center"><img src="class_motors_a8492da1f62dcd7034f93fc8441e6579a_cgraph.png" border="0" usemap="#class_motors_a8492da1f62dcd7034f93fc8441e6579a_cgraph" alt=""/></div>
<map name="class_motors_a8492da1f62dcd7034f93fc8441e6579a_cgraph" id="class_motors_a8492da1f62dcd7034f93fc8441e6579a_cgraph">
<area shape="rect" id="node3" href="serial_8cpp.html#a76b8f1bd6cb72a1e153df998c2742842" title="CloseComport" alt="" coords="215,5,327,35"/><area shape="rect" id="node5" href="serial_8cpp.html#afcbe0bdca93dd392b104bf7c7775ba42" title="OpenComport" alt="" coords="215,59,327,88"/><area shape="rect" id="node7" href="serial_8cpp.html#af2a032058a335a76ef91d025ac63942b" title="SendBuf" alt="" coords="233,112,308,141"/></map>
</div>
</p>

</div>
</div>
<a class="anchor" id="a2a03135d58d03d8a82be9be0ceca1236"></a><!-- doxytag: member="Motors::stopMotors" ref="a2a03135d58d03d8a82be9be0ceca1236" args="(void)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void Motors::stopMotors </td>
          <td>(</td>
          <td class="paramtype">void&nbsp;</td>
          <td class="paramname"></td>
          <td>&nbsp;)&nbsp;</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>stopMotors </p>
<p>maak de snelheid van de motors geleik aan NULL, gebruikt de functie setSpeed</p>
<dl class="author"><dt><b>Auteur:</b></dt><dd>Jasper Nevens &lt;<a href="mailto:jappe@nevensit.be">jappe@nevensit.be</a>&gt; </dd></dl>
<dl class="date"><dt><b>Datum:</b></dt><dd>01/03/11 </dd></dl>

<p>De definitie bevindt zich op regel <a class="el" href="motors_8cpp_source.html#l00127">127</a> in het bestand <a class="el" href="motors_8cpp_source.html">motors.cpp</a>.</p>

<p>Gebruikt <a class="el" href="motors_8h_source.html#l00014">MOTOR_BRAKE</a> en <a class="el" href="motors_8cpp_source.html#l00053">setSpeed()</a>.</p>

<p>Wordt aangeroepen door <a class="el" href="besturing_8cpp_source.html#l00017">Besturing::Besturing()</a> en <a class="el" href="rij_test_8cpp_source.html#l00018">main()</a>.</p>

<p><div id="dynsection-3" onclick="return toggleVisibility(this)" class="dynheader closed" style="cursor:pointer;">
  <img id="dynsection-3-trigger" src="closed.png"/> Hier is de call graaf voor deze functie:</div>
<div id="dynsection-3-summary" class="dynsummary" style="display:block;">
</div>
<div id="dynsection-3-content" class="dyncontent" style="display:none;">
<div class="center"><img src="class_motors_a2a03135d58d03d8a82be9be0ceca1236_cgraph.png" border="0" usemap="#class_motors_a2a03135d58d03d8a82be9be0ceca1236_cgraph" alt=""/></div>
<map name="class_motors_a2a03135d58d03d8a82be9be0ceca1236_cgraph" id="class_motors_a2a03135d58d03d8a82be9be0ceca1236_cgraph">
<area shape="rect" id="node3" href="class_motors.html#ae5fe2fd03098baf0fd6e55c1b52a01e9" title="setSpeed" alt="" coords="201,59,335,88"/><area shape="rect" id="node5" href="serial_8cpp.html#a76b8f1bd6cb72a1e153df998c2742842" title="CloseComport" alt="" coords="385,5,497,35"/><area shape="rect" id="node7" href="serial_8cpp.html#afcbe0bdca93dd392b104bf7c7775ba42" title="OpenComport" alt="" coords="385,59,497,88"/><area shape="rect" id="node9" href="serial_8cpp.html#af2a032058a335a76ef91d025ac63942b" title="SendBuf" alt="" coords="404,112,479,141"/></map>
</div>
</p>

<p><div id="dynsection-4" onclick="return toggleVisibility(this)" class="dynheader closed" style="cursor:pointer;">
  <img id="dynsection-4-trigger" src="closed.png"/> Hier is de caller graaf voor deze functie:</div>
<div id="dynsection-4-summary" class="dynsummary" style="display:block;">
</div>
<div id="dynsection-4-content" class="dyncontent" style="display:none;">
<div class="center"><img src="class_motors_a2a03135d58d03d8a82be9be0ceca1236_icgraph.png" border="0" usemap="#class_motors_a2a03135d58d03d8a82be9be0ceca1236_icgraph" alt=""/></div>
<map name="class_motors_a2a03135d58d03d8a82be9be0ceca1236_icgraph" id="class_motors_a2a03135d58d03d8a82be9be0ceca1236_icgraph">
<area shape="rect" id="node3" href="class_besturing.html#a5a5a117fc659778bfe47e2fd63e08c42" title="Besturing::Besturing" alt="" coords="200,5,352,35"/><area shape="rect" id="node5" href="rij_test_8cpp.html#a0ddf1224851353fc92bfbff6f499fa97" title="main" alt="" coords="249,59,303,88"/></map>
</div>
</p>

</div>
</div>
<hr/>De documentatie voor deze klasse is gegenereerd op grond van het volgende bestands:<ul>
<li>read-only/trunk/source/<a class="el" href="motors_8h_source.html">motors.h</a></li>
<li>read-only/trunk/source/<a class="el" href="motors_8cpp_source.html">motors.cpp</a></li>
</ul>
</div>
<hr class="footer"/><address class="footer"><small>Gegenereerd op Do 19 Mei 2011 10:15:30 voor Robocup-denayer-project-a door&nbsp;
<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.7.1 </small></address>
</body>
</html>
